Skip to content

Run gx doctor repairs from a sandbox when main is protected#37

Merged
NagyVikt merged 1 commit intomainfrom
agent/codex/20260411-203950-mate-edix-hu-gx-doctor-auto-sandbox
Apr 11, 2026
Merged

Run gx doctor repairs from a sandbox when main is protected#37
NagyVikt merged 1 commit intomainfrom
agent/codex/20260411-203950-mate-edix-hu-gx-doctor-auto-sandbox

Conversation

@NagyVikt
Copy link
Copy Markdown
Collaborator

Automated by scripts/agent-branch-finish.sh (PR flow).

Doctor should still be usable for setup drift recovery without mutating a protected base checkout in place. This routes doctor to an auto-created sandbox worktree branch when the current branch is protected, then executes doctor there.

Constraint: Protected main must remain pull-only in initialized repositories

Rejected: Keep blocking doctor on protected main entirely | breaks maintenance flow for drifted repos

Confidence: medium

Scope-risk: moderate

Reversibility: clean

Directive: Keep doctor sandbox fallback aligned with agent-branch-start output parsing

Tested: node --check bin/multiagent-safety.js

Not-tested: fully passing suite in this environment
@NagyVikt NagyVikt merged commit 95b8fdf into main Apr 11, 2026
7 checks passed
@NagyVikt NagyVikt deleted the agent/codex/20260411-203950-mate-edix-hu-gx-doctor-auto-sandbox branch April 11, 2026 22:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant